package com.example.educationai.service;

import com.example.educationai.entity.ExamRecord;
import com.example.educationai.entity.Exam;
import com.example.educationai.entity.SimpleUser;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;

public interface ExamRecordService {
    ExamRecord save(ExamRecord record);
    ExamRecord createRecord(ExamRecord record, MultipartFile examImage);
    ExamRecord updateRecord(ExamRecord record);
    void deleteRecord(Long id);
    ExamRecord getRecord(Long id);
    List<ExamRecord> getExamRecords(Exam exam);
    ExamRecord gradeRecord(Long id, Double score, String comments);
    void gradeExam(ExamRecord record);
    List<ExamRecord> getUserRecords(SimpleUser user);
} 